const state = {
  successVisible:false,
  successMsg:''
}

const mutations = {
  TOGGLE_SUCCESS: (state,device) => {
    state.successVisible = !state.successVisible
    state.successMsg = device
  },
}

const actions = {
  changeSuccess({ commit },device) {
    commit('TOGGLE_SUCCESS',device)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
